System and method for setting a clock rate of a memory card

ABSTRACT

A memory card that includes a buffer configured to receive transactions, a storage media, and a control circuit coupled to the buffer and the storage media is provided. The control circuit is configured to cause a clock signal to be provided to the buffer and the storage media at a clock rate that varies in dependence on a detected rate of the transactions received by the buffer.

THE FIELD OF THE INVENTION

The present invention generally relates to memory cards, and moreparticularly to a system and method for setting a clock rate of a memorycard.

BACKGROUND OF THE INVENTION

Many electronic devices such as digital cameras, personal and laptopcomputer systems, personal digital assistants (PDA), televisions, andaudio and/or video media players are configured to store information toand retrieve information from memory cards that are detachable from thedevices. These memory cards offer users the ability to store andtransfer information between various devices by storing information fromone device onto a memory card and transferring the information from thememory card to another device. For example, a user may take picturesusing a digital camera that stores the pictures on a memory card. Theuser may then couple the memory card to a computer system to transferthe pictures from the memory card to the computer system.

Memory cards, like all electronic devices, consume electrical power inoperation. The amount of power consumed by a memory card may vary withan internal clock rate of the memory card. In other words, faster clockrates may generally cause more power to be consumed by the memory cardthan slower clock rates. Although faster clock rates may enhance theperformance of the memory card by allowing it to transfer information toand from the host device at a faster rate, the host device may not needsuch enhanced performance at various times. At these times, relativelyslower performance produced as a result of a relatively slower clockrate may be sufficient to meet the needs of the host device.

In addition, different types of host devices may place differentperformance requirements on a memory card. For example, one type ofdevice that uses a particular memory card may require higher performancefrom the memory card than another type of device that uses the memorycard.

SUMMARY OF THE INVENTION

The present disclosure provides a memory card that includes a bufferconfigured to receive transactions, a storage media, and a controlcircuit coupled to the buffer and the storage media. The control circuitis configured to cause a clock signal to be provided to the buffer andthe storage media at a clock rate that varies in dependence on adetected rate of the transactions received by the buffer.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is block diagram illustrating an embodiment of a system forsetting a clock rate of a memory card.

FIG. 2 is a flow chart illustrating an embodiment of a method forsetting a clock rate of a memory card.

FIG. 3 is a diagram illustrating an embodiment of a system that includesa memory card configured to set a clock rate.

DETAILED DESCRIPTION

Embodiments of the invention are better understood with reference to thefollowing drawings. The elements of the drawings are not necessarily toscale relative to each other. Like reference numerals designatecorresponding similar parts.

FIG. 1 is a block diagram illustrating an embodiment of a system 100 forsetting a clock rate of a memory card 120 that is coupled to a hostdevice 110, e.g., a digital camera, a personal or laptop computersystem, a personal digital assistant (PDA), a television, or an audioand/or video media player such as an MP3 player. The clock rate ofmemory card 120 may be set to a rate that corresponds with a rate oftransactions between memory card 120 and host device 110 as described inadditional detail herein below.

Memory card 120 may be any type of memory card such as a CompactFlash™memory card, a MultiMediaCard™ memory card, a Secure Digital memorycard, or a Memory Stick™ memory card. Memory card 120 may be detached orremoved from host device 110 and used with other host devices.

As shown, memory card 120 includes a card controller 130 and storagemedia 150. Card controller 130 includes a host interface 132, aprocessor system 134, a buffer and buffer management circuit 136, aclock control circuit 138, a master clock 140, and a media interface142. Storage media 150 includes at least one storage medium configuredto store information and may include any type or combination ofnon-volatile electrical, magnetic, or optical storage media such asflash memory, magnetic RAM (MRAM), atomic resolution storage (ARS), ormagnetic or optical disks. The components within card controller 130 mayeach include hardware, software, or a combination of hardware andsoftware.

In operation, host device 110 provides transactions such as read andwrite transactions, data associated with the transactions, commands, ahost clock signal, and other information to memory card 120 using a bus112. The transactions, data, commands, host clock signal, and otherinformation are received using host interface 132. The transactions anddata associated with the transactions are stored into the buffer in thebuffer and buffer management circuit 136 using data lines 152 and hostclock line 154. Processor system 134 provides control signals to andreceives information from host interface 132 using host interface lines156. Processor system 134 also provides control signals to and receivesinformation from the buffer using buffer control lines 160. Buffer andbuffer management circuit 136 provides buffer empty/buffer full signalsto processor system 134 using one or more lines 158. In response tocontrol signals from processor system 134, buffer and buffer managementcircuit 136 provides transactions and data to media interface 142 usingdata lines 162. Media interface 142 provides the data and media controlsignals to storage media 150 using data lines 166 and control lines 168,respectively. Processor system 134 provides control signals to andreceives information from media interface 142 using media interfacecontrol lines 164.

In response to a write transaction from host device 110, host interface132 stores the write transaction and the data to be stored in the bufferin buffer and buffer management circuit 136. In response to signals fromprocessor system 134, the buffer management circuit provides the writetransaction and the data from the buffer to media interface 142. Mediainterface 142 causes the data to be stored in storage media 150.

In response to a read transaction from host device 110, host interface132 stores the read transaction in the buffer in buffer and buffermanagement circuit 136. In response to signals from processor system134, the buffer management circuit provides the read transaction fromthe buffer to media interface 142. Media interface 142 causes data to beread from storage media 150 and stored in the buffer. The buffermanagement circuit and/or processor system 134 cause the data to betransferred from the buffer to host device 110 using host interface 132.

Master clock 140 generates a master clock signal, CLMM, at a masterclock rate and provides the master clock signal CLMM to processor system134 and clock control circuit 138. Processor system 134 provides controlsignals to clock control circuit 138 using a media clock control line174. Clock control circuit 138 provides a media clock signal, CLKm, at amedia clock rate to buffer and buffer management circuit 136, mediainterface 142, and storage media 150 using lines 172. Clock controlcircuit 138 also provides a processor clock signal to processor system134 using a line 176. As described in detail below, processor system 134may cause the media clock rate and/or the processor clock rate to be setat the same rate or a different rate as the master clock rate.

In operation, memory card 120 consumes an amount of power that may varydirectly with the media clock rate of media clock signal CLKm. In otherwords, memory card 120 may consume more power in response to the mediaclock rate being set to a relatively high or fast rate and less power inresponse to the media clock rate being set to a relatively low or slowerrate. It may be generally desirable to minimize the amount of powerconsumed by memory card 120.

The functions of memory card 120 include storing data received from hostdevice 110 and providing data to host device 110 in response to arequest from host device 110. The rate at which host device 110 may callupon memory card 120 to perform these functions may vary over time. Inaddition, memory card 120 may be configured to operate with differenttypes of host devices 110. Host device 110 may be a digital camera, apersonal or laptop computer system, a personal digital assistant (PDA),a television, or an audio and/or video media player such as an MP3player, for example. The rates at which different types of host devices110 may call upon memory card 120 to perform these functions may vary.For example, a digital camera may interact with memory card 120 atdifferent rates than an MP3 player.

Accordingly, as described in additional detail below, memory card 120 isconfigured to determine a rate of transactions to and/or from hostdevice 110 and to set the media clock rate of the media clock signalCLKm in response to the rate of transactions in order to minimize theamount of power consumed by memory card 120 while ensuring that memorycard 120 performs at a rate suitable for a particular host device 110.

The operation of memory card 120 will now be described with reference toFIGS. 1 and 2. As shown in FIG. 2, the media clock signal CLKm on memorycard 120 is set to a default clock rate by clock control circuit 138 asindicated in a block 202. The default clock rate may be a rateprogrammed by the manufacturer of the card and may be set in response tomemory card 120 being powered up or reset. Alternatively, the defaultrate may be the rate at which memory card 120 was previously operating,i.e. prior to memory card 120 being powered down or reset.

A rate of transactions associated with memory card 120 is determined asindicated in a block 204. The rate of transactions includes a number oftransactions received by memory card 120 from host device 110 over atime period. The transactions may include read transactions configuredto cause information to be read from storage media 150 and provided tohost device 110 and/or write transactions configured to causeinformation to be received from host device 110 and written to storagemedia 150.

In the embodiment of FIG. 1, processor system 134 determines the rate oftransactions by detecting a number of transactions received by bufferand buffer management 136 over one or more time periods. Processorsystem 134 may perform this function in various ways. For example,processor system 134 may determine the rate of transactions bymonitoring how quickly the buffer in buffer and buffer management 136fills and empties. To do so, processor system 134 monitors the number oftimes that it receives a buffer full signal and/or buffer empty signalfrom buffer and buffer management 136 over one or more time periods.Buffer and buffer management 136 generates the buffer full signal toindicate that the buffer is full and generates the buffer empty signalto indicate that the buffer is empty.

In addition, processor system 134 may determine the rate of transactionsby comparing how full or empty the buffer in buffer and buffermanagement 136 is relative to one or more threshold values. If, forexample, during a write transaction, the buffer is fuller than a highthreshold, such as more than 80% full, then data is being input to thebuffer faster than it is being written to storage media 150 andprocessor system 134 causes the clock rate of the media clock toincrease. Similarly, if the buffer is less full than a low threshold,such as less than 20% full, during a write transaction, then data isbeing input to the buffer slower than it is being written to storagemedia 150 and processor system 134 causes the clock rate of the mediaclock to decrease. During a read transaction, processor system 134causes the clock rate of the media clock to increase in response todetermining that the buffer is less full than a low threshold, such asless than 20% full, which indicates that data is being output from thebuffer faster than it is being read from storage media 150. Similarly,processor system 134 causes the clock rate of the media clock todecrease during a read transaction in response to determining that thebuffer is fuller than a high threshold, such as more than 80% full,which indicates that data is being read faster from storage media 150than it is being transferred to host device 110.

Alternatively, processor system 134 may simply count the transactionsreceived by memory card 120 by monitoring host interface 132, buffer andbuffer management 136, and/or media interface 142 over one or more timeperiods to determine the rate of transactions. In each of theseembodiments, the rate of transactions may be associated with the numberof read transactions, the number of write transactions, or the total ofthe number of read transactions and the number of write transactionsreceived by memory card 120 over one or more time periods. In otherembodiments, the rate of transactions of memory card 120 may bedetermined in other ways.

The media clock of memory card 120 is set to a clock rate associatedwith the rate of transactions as indicated in a block 206. In responseto determining the rate of transactions, processor system 134 provides acontrol signal to clock control circuit 138 using media clock controlline 174 to cause clock control circuit 138 to set the clock rate of themedia clock. Clock control circuit 138 receives the master clock signalfrom master clock 140 on lines 170 and generates the media clock signalusing the master clock signal. Clock control circuit 138 may generatethe media clock signal at the same clock rate as the master clock signalor at a different clock rate. Clock control circuit 138 causes the mediaclock to be provided to the buffer in buffer and buffer management 136,media interface 142, and storage media 150 at the set clock rate. Clockcontrol circuit 138 may also set the processor clock rate at a rateassociated with the control signal.

The clock rate may vary directly with the rate of transactions. Forexample, in response to the rate of transactions being relatively high,the clock rate may set to a relatively high rate. Similarly, the clockrate may be set to a relatively low rate in response to the rate oftransactions being relatively low. In this way, memory card 120 may beconfigured to process transactions at a rate that matches approximatelythe rate at which the transactions are received from host device 110.

Processor system 134 may determine the clock rate to be associated withthe rate of transactions in various ways. For example, processor system134 may actively and continuously monitor the empty and/or fill rates ofthe buffer in buffer and buffer management 136 and incrementallyincrease or decrease the clock rate until the transactions are processedat a desired rate. As another example, processor system 134 may includea table that lists media clock rates for each possible range oftransaction rates such that processor system 134 selects the media clockrate associated with the detected rate of transactions from the table.

In other embodiments of the method shown in FIG. 2, the method maycontinuously repeat the functions illustrated in blocks 204 and 206. Forexample, subsequent to setting the media clock rate in block 206, memorycard 120 may determine another rate of transactions associated withmemory card 120 as indicated in block 204 and set the media clock to aclock rate associated with this other rate of transactions as indicatedin block 206. In this way, memory card 120 may dynamically monitor therate of transactions and continuously adjust the clock rate of the mediaclock to ensure operation at a rate suitable for host device 110.

FIG. 3 is a diagram illustrating an embodiment of a system 300 thatincludes memory card 120 which configured to set a clock rate accordingto the rate of transactions received by memory card 120. In FIG. 3,memory card 120 is used in conjunction with a digital camera 310. Memorycard 120 detachably couples to a slot 320 of digital camera 310.

Digital camera 310 illustrates one example of a host device 110 that isconfigured to operate with memory card 120 as described above withreference to the embodiments of FIGS. 1 and 2. In particular, digitalcamera 310 captures image data and stores the image data onto memorycard 120. In addition, digital camera 310 retrieves image data frommemory card 120 and displays the image data to a user.

To capture and store image data, digital camera 310 captures an imageusing an image sensor (not shown). Digital camera 310 causes image dataassociated with the image to be provided memory card 120 using one ormore write transactions. Referring back to FIG. 1, memory card 120receives the write transaction(s) using host interface 132 and causesthe image data to be stored in the buffer in buffer and buffermanagement circuit 136. Processor system 134 causes the image data to bestored in storage media 150 in response to the write transaction(s)using media interface 142.

To retrieve and display an image, digital camera 310 provides one ormore read transactions to memory card 120 to cause image data associatedwith the image to be read. Host interface 132 receives the readtransaction(s) and stores the read transaction(s) in the buffer.Processor system 134 causes the image data to be read from the storagemedia 150 and stored in the buffer in response to the readtransaction(s) using media interface 142. The buffer management circuitand/or processor system 134 cause the image data to be transferred fromthe buffer to digital camera 310 using host interface 132. Digitalcamera 310 displays the image in response to receiving the image data.

In operation with digital camera 310, memory card 120 adjusts the mediaclock rate of the media clock signal CLKm in the manner described abovewith reference to FIGS. 1 and 2.

1. A memory card comprising: a buffer configured to receivetransactions; a storage media; and a control circuit coupled to thebuffer and the storage media; wherein the control circuit is configuredto cause a first clock signal to be provided to the buffer and thestorage media at a first clock rate that varies in dependence on adetected rate of the transactions received by the buffer.
 2. The memorycard of claim 1 further comprising: a processor system coupled to thecontrol circuit; wherein the processor system is configured to detectthe rate of transactions received by the buffer, and wherein theprocessor system is configured to cause the control circuit to set thefirst clock signal to the first clock rate associated with the rate oftransactions received by the buffer.
 3. The memory card of claim 2further comprising: a buffer management circuit; wherein the buffermanagement circuit is configured to provide information to the processorsystem, and wherein the processor system is configured to determine therate of transactions received by the buffer using the information. 4.The memory card of claim 2 further comprising: a master clock configuredto provide a second clock signal at a second clock rate to the processorsystem and the control circuit; wherein the control circuit isconfigured to generate the first clock signal using the second clocksignal.
 5. The memory card of claim 4 wherein the first clock ratediffers from the second clock rate.
 6. The memory card of claim 1further comprising: a first interface coupled to the buffer andconfigured to receive the transactions from a host device and providethe transactions to the buffer; and a second interface coupled to thebuffer and the storage media.
 7. The memory card of claim 1 wherein thetransactions include read transactions configured to cause informationto be read from the storage media.
 8. The memory card of claim 1 whereinthe transactions include write transactions configured to causeinformation to be written to the storage media.
 9. The memory card ofclaim 1 wherein the transactions include read transactions configured tocause information to be read from the storage media and writetransactions configured to cause information to be written to thestorage media.
 10. A system comprising: a host device; and a memory cardconfigured to couple to the host device; wherein the memory cardincludes a storage media, wherein the memory card is configured toprovide a first clock signal to the storage media at a first clock ratethat varies in dependence on a number of transactions received by thememory card from the host device during a time period.
 11. The system ofclaim 10 wherein the memory card includes a processor system and acontrol circuit coupled to the processor system, wherein the processorsystem is configured to determine the number of transactions received bythe memory card from the host device during the time period, and whereinthe processor system is configured to cause the control circuit to setthe rate of the first clock signal in response to the number oftransactions.
 12. The system of claim 11 wherein the memory cardincludes a buffer and a buffer management circuit, wherein the buffermanagement circuit is configured to provide information to the processorsystem, and wherein the processor system is configured to determine thenumber of transactions received by the memory card during the timeperiod using the information.
 13. The system of claim 11 wherein thememory card includes a clock configured to provide a second clock signalto the processor system and the control circuit at a second clock rate,and wherein the control circuit is configured to generate the firstclock signal using the second clock signal.
 14. The system of claim 10wherein host device comprises a digital camera.
 15. The system of claim10 wherein the memory card includes a buffer and an interface coupled tothe buffer, and wherein the interface is coupled to receive thetransactions from the host device and provide the transactions to thebuffer.
 16. The system of claim 10 wherein the transactions include readtransactions configured to cause information to be read from the memorycard and provided to the host device.
 17. The system of claim 10 whereinthe transactions include write transactions configured to causeinformation to be written from the host device to the memory card. 18.The system of claim 10 wherein the transactions include readtransactions configured to cause first information to be read from thestorage media and provided to the host device and write transactionsconfigured to cause second information to be written from the hostdevice to the memory card.
 19. A method comprising: determining a firstrate of transactions received by a memory card; and setting a firstclock signal of the memory card to a first clock rate that varies independence on the rate of transactions.
 20. The method of claim 19further comprising: determining the first rate of transactions bymonitoring a buffer of the memory card.
 21. The method of claim 19further comprising: determining the first rate of transactions bymonitoring a number of times a buffer of the memory card fills over atime period.
 22. The method of claim 19 further comprising: determiningthe first rate of transactions by monitoring a number of times a bufferof the memory card empties over a time period.
 23. The method of claim19 further comprising: determining the first rate of transactions bycomparing to a threshold level the amount of information stored in thebuffer.
 24. The method of claim 19 further comprising: subsequent todetermining the first rate, determining a second rate of transactionsreceived by the memory card; and setting the first clock signal to asecond clock rate associated with the rate of transactions.
 25. Themethod of claim 19 wherein the transactions include read transactionsconfigured to cause information to be read from the memory card.
 26. Themethod of claim 19 wherein the transactions include write transactionsconfigured to cause information to be written to the memory card. 27.The method of claim 19 wherein the transactions include readtransactions configured to cause first information to be read from thememory card and write transactions configured to cause secondinformation to be written to the memory card.
 28. A memory cardcomprising: a buffer configured to receive transactions; a storagemedia; a clock configured to generate a clock signal and provide theclock signal to the buffer and the storage media; means for determininga rate of the transactions received by the buffer; and means for causingthe clock signal to be set at a rate associated with the rate oftransactions.
 29. The memory card of claim 28 further comprising: aninterface coupled to the buffer; wherein the interface is configured toreceive the transactions from a host device and provide the transactionsto the buffer.
 30. The memory card of claim 28 wherein the transactionsinclude read transactions configured to cause information to be readfrom the storage media.
 31. The memory card of claim 28 wherein thetransactions include write transactions configured to cause informationto be written to the storage media.
 32. The memory card of claim 28wherein the transactions include read configured to cause information tobe read from the storage media and write transactions configured tocause information to be written to the storage media.
 33. A memory cardcomprising: a buffer; an interface configured to receive transactionsfrom a host device and provide the transactions to the buffer; a storagemedia; a control circuit coupled to the buffer and the storage media;and a processor system coupled to the control circuit; wherein theprocessor system is configured to detect a rate of transactions receivedby the buffer, wherein the processor system is configured to cause thecontrol circuit to set a first clock signal to a first clock rate thatvaries in dependence on the rate of transactions received by the buffer,and wherein the control circuit is configured to cause the first clocksignal to be provided to the buffer and the storage media.
 34. Thememory card of claim 33 further comprising: a master clock configured toprovide a second clock signal at a second clock rate to the processorsystem and the control circuit; wherein the control circuit isconfigured to generate the first clock signal using the second clocksignal.
 35. The memory card of claim 33 wherein the transactions includeread transactions configured to cause information to be read from thestorage media.
 36. The memory card of claim 33 wherein the transactionsinclude write transactions configured to cause information to be writtento the storage media.